package com.hong.service_cart_client;

import com.hong.fy_model.model.cart.CartEntity;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("service-cart")
public interface CartFeignClient {
    //为用户创建一个购物车

    @PostMapping("/api/cart/addCart/{userId}")
    public CartEntity add(@PathVariable("userId")  Integer userId);
}
